package cn.hp.domain;

import java.util.Arrays;
import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.Set;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
@Component
@ConfigurationProperties(prefix="student")
public class Student {
	
	private Integer id; 
	private String name; 
	private String [] hobby;
	private List<String> lists; 
	private Map<String,String> maps; 
	private Set<String> sets;
	private Integer age;
	private Date birth;
	/*
	 * applicationContext.xml
	 * 
	 * <bean id="studnet" class="cn.hp.domain.Student">
	 * 		<property name="id" value=""></property>
	 * <bean>
	 * 
	 */
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String[] getHobby() {
		return hobby;
	}
	public void setHobby(String[] hobby) {
		this.hobby = hobby;
	}
	public List<String> getLists() {
		return lists;
	}
	public void setLists(List<String> lists) {
		this.lists = lists;
	}
	public Map<String, String> getMaps() {
		return maps;
	}
	public void setMaps(Map<String, String> maps) {
		this.maps = maps;
	}
	public Set<String> getSets() {
		return sets;
	}
	public void setSets(Set<String> sets) {
		this.sets = sets;
	}
	public Integer getAge() {
		return age;
	}
	public void setAge(Integer age) {
		this.age = age;
	}
	public Date getBirth() {
		return birth;
	}
	public void setBirth(Date birth) {
		this.birth = birth;
	}
	
	@Override
	public String toString() {
		return "Student [id=" + id + ", name=" + name + ", hobby=" + Arrays.toString(hobby) + ", lists=" + lists
				+ ", maps=" + maps + ", sets=" + sets + ", age=" + age + ", birth=" + birth + "]";
	}
	
	
}
